package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * Created by zhuyakun on 2017/12/1.
 */

public class DeleteGoodsRequest {
    Long goodsId;
    Long id;

    private DeleteGoodsRequest(Builder builder) {
        setGoodsId(builder.goodsId);
        setId(builder.id);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public static final class Builder {
        private Long goodsId;
        private Long id;

        private Builder() {
            goodsId = null;
            id = null;
        }

        public Builder goodsId(Long goodsId) {
            this.goodsId = goodsId;
            return this;
        }

        public Builder id(Long id) {
            this.id = id;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().deleteGoods(new DeleteGoodsRequest(this));
        }
    }
}
